package com.ocom.common.vo.pay;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
public class ChartListVo implements Serializable {
    @JsonProperty("xAxis")
    private XAxis xAxis;

    @JsonProperty("xDate")
    private Set<String> xDate;

    private List<Series> series;


    @Data
    public static class XAxisMap{
        private Map<Integer,Integer> data;
    }

    @Data
    public static class XAxis{
        private List<Integer> data;
    }

    @Data
    public static class Series{
        private String name;

        private List<BigDecimal> data;

    }

    @Data
    public static class SeriesMap{
        private String name;

        private BigDecimal amount;
    }
}
